//
//  StockUnitDivitionJaList.m
//  MarketDataColloctor
//
//  Created by jiro on 10/02/20.
//  Copyright 2010 jiro music. All rights reserved.
//

#import "StockUnitDivitionJaList.h"
#import "StockUnitDivitionJa.h"

@implementation StockUnitDivitionJaList

- (id) init
{
	self = [ super init ];
	instance = [ [ NSMutableArray alloc ] init ];
	return self;
}

- (NSString*) sqlInsertStatement
{
	NSMutableString* sql = [ NSMutableString string ];
	[ sql appendFormat: @"insert into %@ values\n", kText_StockUnitDivisionJaTable ];
	NSEnumerator* e = [ instance objectEnumerator ];
	StockExchangeJa* value;
	
	BOOL firstValue = YES;
	while ( value = [ e nextObject ] )
	{
		if ( firstValue ) {
			firstValue = NO;
		} else {
			[ sql appendString: @", " ];
		}
		[ sql appendFormat: @"%@\n", [ value queryInsertValue ] ];
	}
	[ sql appendString: @";\n" ];	
	return sql;	
}

@end
